const routes = [
  {
    path: '/', component: '@/pages/index/App', icon: 'icon-shouye', name: '首页管理',
  },
  {
    path: '/login', component: '@/pages/login/App', layout: false,
  },
  {
    path: '/cms', name: '内容管理', icon: 'icon-neirongmoxingshezhi', routes: [
      {path: '/cms/place', name: '推荐管理', component: '@/pages/cms/place/App'},
    ],
  },
  {
    path: '/monitor', name: '监控管理', icon: 'icon-jiankong', routes: [
      {path: '/monitor/xxlJob', name: '定时任务', component: '@/pages/monitor/xxlJob/App'},
    ],
  },
  {
    path: '/system', name: '系统设置', icon: 'icon-quanjushezhi_o', routes: [
      {path: '/system/user', name: '用户管理', component: '@/pages/system/user/App'},
      {path: '/system/role', name: '角色管理', component: '@/pages/system/role/App'},
      {path: '/system/menu', name: '菜单管理', component: '@/pages/system/menu/App'},
      {path: '/system/dept', name: '部门管理', component: '@/pages/system/dept/App'},
      {path: '/system/post', name: '岗位管理', component: '@/pages/system/post/App'},
      {path: '/system/dict', name: '字典管理', component: '@/pages/system/dict/App'},
      {path: '/system/config', name: '配置管理', component: '@/pages/system/config/App'},
      {path: '/system/region', name: '区县管理', component: '@/pages/system/region/App'},
      {path: '/system/log', name: '系统日志', component: '@/pages/system/log/App'},
      {path: '/system/loginlog', name: '登陆日志', component: '@/pages/system/loginlog/App'},
    ],
  },
  {
    path: '/ucenter', icon: 'icon-gerenzhongxin', name: '个人中心', component: '@/pages/ucenter/App',
  },
  {
    path: '/*', component: '@/pages/404.js'
  },
];

export default routes;
